<?php

    class SearchController extends Application {
        
        function setup()
        {
            $this->actions = array('index');
            
        }
        
		function index() 
		{
		    use_model('search_index');
		    if ( isset($_GET['query']) )
		    {
		        $search_index = new Search_Index();
        		$this->assign('results_pager',$search_index->do_search($_GET['query']));
		    }
		    
		}

        
    }

?>